package com.epsilon.commons.context.login.view;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Shell;

import com.epsilon.commons.util.SWTResourceManager;

public class LoginShell extends Shell {

	private LoginComposite	loginComposite;

	public LoginShell( Shell parent ) {
		super( parent, SWT.SHELL_TRIM );
		setImage( SWTResourceManager
				.getImage( LoginShell.class, "/com/epsilon/commons/context/img/candado_cerrado.png" ) );
		loginComposite = new LoginComposite( this, SWT.NONE );
		loginComposite.setBounds( 10, 10, 262, 111 );
		createContents();
	}

	/**
	 * Create contents of the shell.
	 */
	protected void createContents() {
		setText( "Login" );
		setSize( 297, 173 );

	}

	@Override
	protected void checkSubclass() {
		// Disable the check that prevents subclassing of SWT components
	}

	public LoginComposite getLoginComposite() {
		return loginComposite;
	}
}